package com.yqya.springboot.hello.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yqya.springboot.hello.service.HelloService;

/**
 * 测试示例
 *
 * @author Kevin
 * @date 2019-07-26
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    /**
     * 首页
     */
    @GetMapping("/")
    public String index() {
        String msg = helloService.sayHello();
        return msg;
    }

}
